package com.ld.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


/**
 * 借出 未归还
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Rental {
    //rental表的id
    private  Integer rentalId;
    //库存id
    private Integer inventoryId;
    //影片id
    private Integer filmId;
    //期限
    private Double rentalDuration;
    //比率
    private BigDecimal rentalRate;
    //成本(赔偿)
    private BigDecimal replacementCost;
    //影片名
    private String filmTitle;
    //顾客id(借出人)
    private Integer customerId;
    //借出时间(数据库中是datetime)
    private String rentalDate;
    //归还时间(数据库中是datetime)
    private String returnDate;
    //借出员工id
    private Integer staffId;
    //归还员工id
    private Integer returnStaffId;
    //店铺id
    private Integer storeId;
    //实际付款,回传才需要
    private BigDecimal amount;


}
